import request from '@/router/axios';

/**
 * 生成序列号
 */
export const createSequence = (data) => {
  return request({
    url: '/api/mes-admin/label-product/malfunction/sequence/create',
    method: 'post',
    data: data
  });
};

export const generationPreview = (data) => {
  return request({
    url: '/api/mes-admin/label-product/malfunction/sequence/preview',
    method: 'post',
    data: data
  });
};

export const getSourceList = (params) => {
  return request({
    url: '/api/mes-admin/sequence/generation/source',
    method: 'get',
    params: params
  });
};

export const sequencePrint = (data) => {
  return request({
    url: '/api/mes-admin/label-product/malfunction/sequence/print',
    method: 'post',
    data: data
  });
};

export const snPrint = (data) => {
  return request({
    url: '/api/mes-admin/label-product/malfunction/sequence/rePrint',
    method: 'post',
    data: data
  });
};
